﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using NewSecret;

namespace NewSecret
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void PlainText_Click(object sender, EventArgs e)
        {

        }

        private void GetPlainText_TextChanged(object sender, EventArgs e)
        {

        }

        private void GetKey_TextChanged(object sender, EventArgs e)
        {

        }

        private void GetCypher_TextChanged(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            string plain = GetPlainText.Text;
            string key= GetKey.Text;
            ///加密
            Model myEncoder = new Model();
            myEncoder.Key = key;
            myEncoder.Plain = plain;
            myEncoder.Encode();
            string Cyphter=myEncoder.Cypher;
            GetCypher.Text = myEncoder.Cypher;
        }

        private void Cypher_Click(object sender, EventArgs e)
        {

        }
    }
}
